package net.jjjshop.common.service.user;

import net.jjjshop.common.entity.lbt.TeamBean;
import net.jjjshop.common.entity.user.User;
import net.jjjshop.framework.common.service.BaseService;

import java.math.BigDecimal;

/**
 * 用户记录表 服务类
 *
 * @author jjjshop
 * @since 2022-07-01
 */
public interface UserService extends BaseService<User> {
    /**
     * 我的团队
     */
    TeamBean queryTeam(Integer uid, BigDecimal payMonet);


    /**
     * 通过邀请码查询人数
     * @param pid
     * @return
     */
    Integer selectInviteCodeNum(Integer pid);

    Integer getUserId();

    Boolean getParentUser(Integer uid,BigDecimal payPrice);

    Boolean handleTeamPerformance(Integer uid,BigDecimal payPrice);
    /**
     * 根据账户查询用户
     * @param account 账户
     * @return 用户信息
     */
    User getByAccount(String account);

    /**
     * 设置用户区代理
     * @param uid
     * @param reginId
     * @return
     */
    String setUserRegin(Integer uid,Integer reginId);

    /**
     * 获取A线业绩
     * @param uid
     * @return
     */
    BigDecimal getAline(Integer uid);

    /**
     * 查询高级代理人数
     * @param uid
     * @return
     */
    Integer getGjdlNum(Integer uid);

    /**
     * 查询总代理人数
     * @param uid
     * @return
     */
    Integer getAllDlNum(Integer uid);

    BigDecimal getYjMoney(Integer uid);

}
